<?php

namespace App\Constant;

class OrderEnum
{
    const STATUS_PENDING = 'pending';
    const STATUS_PAID = 'paid';
    const STATUS_CANCELED = 'canceled';
    const STATUS_TIMEOUT = 'timeout';
    const STATUS_CLOSED = 'closed';

    const TYPE_GROUP = 'group';
    const TYPE_ADVANCED_GROUP = 'advanced_group';


    const TYPE_EXPLAINS = [
        self::TYPE_GROUP => '团长开通',
        self::TYPE_ADVANCED_GROUP => '高级团长开通'
    ];

    const TYPE_COLORS = [
        self::TYPE_GROUP => 'primary',
    ];

    const STATUS_EXPLAINS = [
        self::STATUS_PAID => '已支付',
        self::STATUS_PENDING => '下单中',
        self::STATUS_CANCELED => '已取消',
        self::STATUS_TIMEOUT => '已超时',
        self::STATUS_CLOSED => '已关闭'
    ];

    const STATUS_COLORS = [
        self::STATUS_PENDING => 'info',
        self::STATUS_PAID => 'success',
        self::STATUS_CANCELED => 'danger',
        self::STATUS_TIMEOUT => 'danger',
        self::STATUS_CLOSED => 'danger'
    ];
}
